# schemas 模式检查

from typing import List, Optional
from pydantic import BaseModel

class GetProvincial(BaseModel):
    """ 获取省份输入模型 """
    id: Optional[int] = None
    name: str

class ProvincialCreate(GetProvincial):
    """ 添加省份 """
    name: str

    # class Config:
    #     orm_mode = True

class ObtainProvince(GetProvincial):
    id: Optional[int]
    name: str

    class Config:
        orm_mode = True
    # 直接获取省份模型






